package com.aaa.hospital.nurse.controller;

import com.aaa.hospital.nurse.pojo.Beds;
import com.aaa.hospital.nurse.service.BedsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@ResponseBody
public class BedsController {
    @Autowired
    private BedsService bedsService;

    @RequestMapping("/bedsqueryAll")
    public List<Beds> bedsqueryAll(Integer bfid){
        List<Beds> list=bedsService.selectById(bfid);

        return list;
    }
}
